Ext.application({
	name:"Lia",
    phoneStartupScreen: 'resources/loading/Homescreen.jpg',
    tabletStartupScreen: 'resources/loading/Homescreen~ipad.jpg',
    glossOnIcon: false,
    viewport: {
        autoMaximize: true
    },
    icon: {
        57: 'resources/icons/icon.png',
        72: 'resources/icons/icon@72.png',
        114: 'resources/icons/icon@2x.png',
        144: 'resources/icons/icon@114.png'
    },
    requires: [
        'Ext.data.Store',
        'Ext.List',
        'Ext.field.Search',
        'Ext.Toolbar',
        'Ext.tab.Panel',
        'Ext.Map',
        'Ext.Button',
        'Ext.SegmentedButton',
        'Ext.Panel'
    ],
    controllers: ['Aplication'],
    models: ['Car'],
    stores: ['StoreCar','StoreMarca','StoreModelo'],
    views: ['Main','Editor','SearchCar','ListCar','MapCar'], 
    launch: function() {
    	 var mainView = {
    	            xtype: "mainview"
    	        };
    	        var editorView = {
    	            xtype: "editorview"
    	        };
    	        var searchView = {
        	            xtype: "searchview"
        	        };
    	        var listCarView = {
        	            xtype: "listcarview"
        	        };
    	        var mapCarView = {
        	            xtype: "mapcarview"
        	        };
    	        

    	        Ext.Viewport.add([mainView, editorView,searchView,listCarView,mapCarView]);
    	 
    }
});
